package person.tavion.securitydemo.controller;

import jakarta.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
//@RequestMapping("/authentication")
public class AuthenticationController {

    @RequestMapping("/test")
    public String test(HttpServletRequest request){
        System.out.println("访问资源"+request.getMethod()+"：/test");
        return "/authentication/test";
    }
    @GetMapping("/login")
    public String login(){
        System.out.println("访问：/login");
        return "/authentication/login";
    }
//    @RequestMapping("/login/process")
//    public String process(){
//        System.out.println("访问：/authentication/login");
//        return "/authentication/login";
//    }
}
